home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14030 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: woepc11.physik.fu-berlin.DE!root
  2. From: Sebastian Thees <zeppo@woepc11.physik.fu-berlin.de>
  3. Newsgroups: comp.lang.c
  4. Subject: ??? communication between tow independent processes
  5. Date: Thu, 11 Apr 1996 14:20:18 +0200
  6. Organization: Physikdepartment @ FU-Berlin
  7. Message-ID: <316CF902.4FCCA25D@woepc11.physik.fu-berlin.de>
  8. NNTP-Posting-Host: woepc11.physik.fu-berlin.de (130.133.3.172)
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. NNTP-Posting-User: root
  13. X-Access: 16 17 18
  14. X-Mailer: Mozilla 2.01 (X11; I; Linux 1.3.75 i586)
  15. CC: need, help, !!!
  16.  
  17. Hello,
  18.  
  19. I am working on a Linux PC under gnu gcc and have the following 
  20. generell problem:
  21.  
  22. I would like to write a program that is able to anser requests !!,
  23. not only one, (for Example: is this String an element of the database
  24. xxx) comming from an other independent  program.
  25.  
  26. What I did up to now is some rudimeterial try's via the call popen(...).
  27. and STIO (fscan).
  28.  
  29. My problem is that this only allows me to have  one cyrcle  of
  30. kommunitation: The program which needs information starts the
  31. information-program via popen with the thinks it wants to tell as a
  32. parameterstring and then, the information-program delivers the anser via
  33. STIO and dies.
  34.  
  35. But this is ecatly that what I do not want. I want to run the
  36. information-program the whole time in the background and never die. even
  37. if the system is going down ...
  38.  
  39. I think I have to setup the kommunication between the programs in a 
  40. comletly diffrent way ( open,..socket ?,...socketpairs ?.. what is this
  41. exatly...), but I do not now which is the right one.
  42.  
  43. So, is there anybody out there who can give me not the complet solution,
  44. but who can bring me on the right way? maybe you can give me some good
  45. hints, specialy where I can get more Information on my problem.
  46.  
  47. it would be fine - thanks and by
  48.  
  49. Z.
  50.